package com.hdu.heihei.service.impl;

import com.hdu.heihei.beans.User;
import com.hdu.heihei.dao.impl.UserDaoImpl;
import com.hdu.heihei.service.UserService;

import java.util.List;


/**
 * @author fengyuan
 */
public class UserServiceImpl implements UserService {

    UserDaoImpl userDaoImpl = new UserDaoImpl();

    public void setUserDaoImpl(UserDaoImpl userDaoImpl){
        this.userDaoImpl =  userDaoImpl;
    }

    @Override
    public List<User> getAll() {
        return userDaoImpl.list();
    }


}
